package com.chongqing.shiro.service;

import com.chongqing.shiro.model.entity.User;
import com.chongqing.shiro.model.vo.ResponseVo;

import java.util.List;

public interface UserService  {

     int register(User user);

    User selectByUsername(String username);

    void updateLastLoginTime(User user);

    List<User> selectUsers(User user);

    User selectByUserId(String userId);

    int updateByUserId(User userForm);

    int updateStatusBatch(List<String> userIdList, Integer statusInvalid);

    ResponseVo addAssignRole(String userId, List<String> roleIdsList);

    int updateUserByPrimaryKey(User newUser);
}
